import request from "@/utils/request";
import { ArtistContentSectionForm, ArtistContentSection } from "./model";

/**
 * 艺术家栏目内容API
 */
class ArtistContentSectionAPI {


  /**
   * 获取艺术家栏目内容列表
   * @param data 
   * @returns 
   */
  static getList(data: ArtistContentSectionForm) {
    return request<any, ArtistContentSection[]>({
      url: "/artistContentSection/getList",
      method: "post",
      data: data,
    });
  }

  /**
   * 保存艺术家栏目内容
   * @param data 
   * @returns 
   */
  static edit(data: ArtistContentSectionForm) {
    return request({
      url: "/artistContentSection/edit",
      method: "post",
      data: data,
    });
  }

}

export default ArtistContentSectionAPI;
